<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86188
  Date: 2019/1/21
  Time: 15:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>待分配</title>
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
    <script type="text/javascript" src="/static/layuiadmin/layui/layui.js"></script>
    <script type="text/javascript" src="/static/js/jquery-3.1.1.min.js"></script>
    <script src="/static/layuiadmin/layui/layui.js" charset="UTF-8"></script>
    <style type="text/css">
        .layui-textarea {
            min-height: 40px;
            height: 40px;
            line-height: 17px;
            padding: 10px 9px;
            resize: vertical
        }

        body {
            padding: 10px;
        }

        .pick-area {
            display: inline-block;
        }

        .a {
            float: left;
            width: 100%;
            margin: 10px;
        }

        .a a {
            float: left;
            margin: 10px;
        }

        .a input {
            float: left;
            width: 400px;
            padding: 10px;
            margin: 10px;
            outline-color: gold;
        }
    </style>
</head>
<body>
<form class="layui-form layui-form-pane" id="myform">
    <table class="layui-table" style="text-align: center">
        <tr>
            <td>申请时间</td>
            <td>
                <textarea class="layui-textarea" cols="20" readonly="readonly">${c.ctime}</textarea>
            </td>
        </tr>
        <tr>
            <td>申请人姓名</td>
            <td>
                <textarea class="layui-textarea" cols="20" readonly="readonly">${c.cname}</textarea>
            </td>
        </tr>
        <tr>
            <td>联系电话</td>
            <td>
                <textarea class="layui-textarea" cols="20" readonly="readonly">${c.cphone}</textarea>
            </td>
        </tr>
        <tr>
            <td>证件类型</td>
            <td>
                <input class="layui-textarea" cols="20" rows="1" value="<c:forEach items="${list}" var="li"><c:if test="${li.did == c.cdocumenttype}">${li.dname}</c:if></c:forEach>" readonly="readonly">
            </td>
        </tr>
        <tr>
            <td>证件号码</td>
            <td>
                <textarea class="layui-textarea" cols="20" rows="1" readonly="readonly">${c.cidentificationnumber}</textarea>
            </td>
        </tr>
        <tr>
            <td>申请金额</td>
            <td>
                <textarea class="layui-textarea" cols="20" rows="1" readonly="readonly">${c.cmoney}</textarea>
            </td>
        </tr>
        <tr>
            <td>操作</td>
            <td>
                <button class="layui-btn" lay-submit="" lay-filter="Refer">关闭</button>
            </td>
        </tr>
    </table>
</form>
</body>
<script>
    layui.use(['form', 'layedit', 'laydate'], function () {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate
        // form.render('select')
        form.on('submit(Refer)', function (data) {
            //获取窗口索引
            var index = parent.layer.getFrameIndex(window.name);
            //关闭窗口
            parent.layer.close(index);
        });
    });
</script>
</html>